package com.tihi.handsuiviewer;

import ofs.ahd.dii.br.AdSize;
import ofs.ahd.dii.br.AdView;
import android.app.Activity;
import android.content.Intent;
import android.widget.LinearLayout;

import com.tihi.ui.base.BaseActivity;

/**
 * 帮助界面
 * @author duantihi
 *
 * @date 2016-2-18 下午2:06:30
 */
public class HelpActivity extends BaseActivity{

	@Override
	protected int getLayout() {
		return R.layout.hel_act;
	}
	
	public static void startAct(Activity context) {
		context.startActivity(new Intent(context, HelpActivity.class));
	}

	@Override
	protected void initViews() {
		initYouMiAd();
	}
	
	private void initYouMiAd() {
		// 实例化广告条
		AdView adView = new AdView(this, AdSize.FIT_SCREEN);
		// 获取要嵌入广告条的布局
		LinearLayout adLayout=(LinearLayout)findViewById(R.id.adLayout);
		// 将广告条加入到布局中
		adLayout.addView(adView);
	}

	@Override
	protected String getTagForUmeng() {
		return "帮助页面";
	}

}
